#ifndef __DRV8701E_RT1064_H
#define __DRV8701E_RT1064_H

/*---------------C Scope-----------------------------*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "fsl_pwm.h"
#include "fsl_gpio.h"

#ifdef __cplusplus
}
#include "device/drv8701e/DRV8701E.h"
class DRV8701E_RT1064 : public DRV8701E
{
private:
    PWM_Type *base = nullptr;
    pwm_submodule_t module;
		pwm_module_control_t control_module;
    pwm_channels_t channel;
    GPIO_Type *Gpio_base = nullptr;
    uint32_t pin;

public:
		DRV8701E_RT1064(PWM_Type *_base,pwm_submodule_t _module,pwm_module_control_t _control,pwm_channels_t _channel,GPIO_Type *gpio_base, uint32_t _pin):
		DRV8701E(),base(_base),module(_module),control_module(_control),channel(_channel),Gpio_base(gpio_base),pin(_pin){};
    virtual void Init(uint8_t _channel) override;
    virtual void SetDuty(uint8_t _channel, uint32_t _duty) override;
};

#endif
#endif
